import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/me_room_new_msg_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class MeRoomNewMsgEntity {
	late int code;
	late MeRoomNewMsgObj obj;
	late String msg;

	MeRoomNewMsgEntity();

	factory MeRoomNewMsgEntity.fromJson(Map<String, dynamic> json) => $MeRoomNewMsgEntityFromJson(json);

	Map<String, dynamic> toJson() => $MeRoomNewMsgEntityToJson(this);

	MeRoomNewMsgEntity copyWith({int? code, MeRoomNewMsgObj? obj, String? msg}) {
		return MeRoomNewMsgEntity()
			..code= code ?? this.code
			..obj= obj ?? this.obj
			..msg= msg ?? this.msg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MeRoomNewMsgObj {
	late bool exist;

	MeRoomNewMsgObj();

	factory MeRoomNewMsgObj.fromJson(Map<String, dynamic> json) => $MeRoomNewMsgObjFromJson(json);

	Map<String, dynamic> toJson() => $MeRoomNewMsgObjToJson(this);

	MeRoomNewMsgObj copyWith({bool? exist}) {
		return MeRoomNewMsgObj()
			..exist= exist ?? this.exist;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}